package com.hunanwenli.movie.mapper;

import com.hunanwenli.entity.MyFriend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MyFriendMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MyFriend record);

    int insertSelective(MyFriend record);

    MyFriend selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MyFriend record);

    int updateByPrimaryKey(MyFriend record);

    int selectIsFriend(@Param("fid") Integer fid, @Param("uid") Integer uid);

    int deleteByFidAndUid(@Param("fid") Integer fid, @Param("uid") Integer uid);

    List<MyFriend> selelctByUid(Integer uid);
}